<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class Comment extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('comment', function (Blueprint $table){
            $table->increments('id');
            $table->integer("uid")->comment("评论的用户");
            $table->string('app')->comment("评论对应的项目");
            $table->integer("app_id")->comment("评论对应的ID");
            $table->string("content")->comment("评论内容");
            $table->integer("floor")->comment("对应的楼层");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::drop('comment');
    }
}
